package com.crm.controller;

import com.crm.base.ResponseResult;
import com.crm.domain.query.ReportQuery;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

@RestController
@Api(tags = "统计分析")
@RequiredArgsConstructor
@RequestMapping("/report")
public class ReportController {
    @GetMapping("/contractStatisticsList")
    @ApiOperation("客户统计")
    public ResponseResult list(ReportQuery reportQuery){
      return null;
    }

    @GetMapping("/getVulnerabilityMap/{dtoOne}/{dtoTwo}")
    public ResponseResult getVulnerabilityMap(){
        HashMap<String, Integer> data = new HashMap<>();
        data.put("cluesNums",66);
        data.put("effectiveCluesNums",47);
        data.put("businessNums",155);
        data.put("contractNums",0);
        return ResponseResult.success(data);
    }

}
